#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui>

namespace Ui
{
    class MainWindow;
}

class Scene;
class Object;
class Light;


class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    MainWindow();

protected:
    void closeEvent(QCloseEvent *event);

private slots:
    void on_actionRender_triggered();

    void on_action_LoadLibrary_triggered();

    void on_action_OpenScene_triggered();

    void on_action_SaveScene_triggered();

    void on_action_OpenBuilding_triggered();

    void onItemDoubleClicked(QListWidgetItem* item);

    void selectObject(Object*);
    void selectLight(Light*);
    void clearSelection();

    void on_action_Light_triggered();

private:
    void loadLibrary(const QString& lpath);

    Ui::MainWindow *ui;
    Scene *m_scene;
};

#endif // MAINWINDOW_H
